{{include file="common@layout/_meta_x-admin" /}}
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form">
            <input type="hidden" name="id" value="{{$user.id}}">
            {{:widget('common/Form/input',['昵称','',$user.nickname,false,true])}}
            {{:widget('common/Form/input',['手机号','',$user.mobile_phone,false,true])}}
            {{:widget('common/Form/input',['余额','blance',$user.blance,true,false])}}
            <div class="layui-form-item">
                <div class="layui-form-item">
                    <label class="layui-form-label">会员日期</label>
                    <div class="layui-inline layui-show-xs-block">
                        <input class="layui-input"  value="{{$user.user_vip.vip_start_time}}" autocomplete="off" placeholder="开始日" name="beginTime" id="start">
                    </div>
                    <div class="layui-inline layui-show-xs-block">
                        <input class="layui-input"  value="{{$user.user_vip.vip_end_time}}" autocomplete="off" placeholder="截止日" name="endTime" id="end">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-form-item">
                    <label class="layui-form-label">头像</label>
                    <div class="layui-input-block">
                        <img src="{{$user.avatar_url}}" alt="" onclick="previewImg(this)" width=200/>
                    </div>
                </div>
            </div>
            {{:widget('common/Form/select',['状态','status',$user.status,$statusSelect])}}
            {{:widget('common/Form/submit')}}
        </form>
    </div>
</div>
</body>
<script>

    layui.use(['laydate','form','jquery'], function(){
        var form = layui.form;
        var $ = layui.jquery;
        var laydate = layui.laydate;
        laydateRender(laydate,'start');
        laydateRender(laydate,'end');
        //监听提交
        form.on('submit(submitForm)', function(data){
            ajaxRequest('',data.field)
            return false;
        });
    });
</script>
